import request from '@/utils/request'

// 查询渠道商提现申请列表
export function listChannelPayoutDetail(query) {
  return request({
    url: '/channelPayoutDetail/channelPayoutDetail/list',
    method: 'get',
    params: query
  })
}

// 查询渠道商提现申请详细
export function getChannelPayoutDetail(id) {
  return request({
    url: '/channelPayoutDetail/channelPayoutDetail/' + id,
    method: 'get'
  })
}

// 新增渠道商提现申请
export function addChannelPayoutDetail(data) {
  return request({
    url: '/channelPayoutDetail/channelPayoutDetail',
    method: 'post',
    data: data
  })
}

// 修改渠道商提现申请
export function updateChannelPayoutDetail(data) {
  return request({
    url: '/channelPayoutDetail/channelPayoutDetail',
    method: 'put',
    data: data
  })
}

// 删除渠道商提现申请
export function delChannelPayoutDetail(id) {
  return request({
    url: '/channelPayoutDetail/channelPayoutDetail/' + id,
    method: 'delete'
  })
}
